package com.seed.core.builder.pojo;

import com.mybatisflex.core.query.QueryCondition;
import com.mybatisflex.core.query.QueryTable;
import com.seed.core.enumeration.JoinType;
import com.seed.core.pojo.Join;

public class Join1 {
    private final Table1 table;
    private final OnCondition1 on;
    private final JoinType joinType;

    public Join1(Table1 table, OnCondition1 on) {
        this.table = table;
        this.on = on;
        this.joinType = JoinType.left;
    }

    public Join1(Table1 table, OnCondition1 on, JoinType joinType) {
        this.table = table;
        this.on = on;
        this.joinType = joinType;
    }

    public Table1 getTable() {
        return table;
    }

    public OnCondition1 getOn() {
        return on;
    }

    public JoinType getJoinType() {
        return joinType;
    }
}
